package com.mjt.admin.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-10-28 14:33
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RespDataBean<T> {

    private long code;

    private String msg;

    private List<T> data;

    private long count;

    public RespDataBean(List<T> data, long count) {
        this.data = data;
        this.count = count;
    }

    public RespDataBean(long code, String msg, List<T> data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
